const express = require('express')
const path = require('path')
const bodyParser = require('body-parser')

const app = express()

app.use(express.static(path.join(__dirname, 'src')))
app.use(express.static(path.join(__dirname, '../')))

app.use(bodyParser.urlencoded({extended: true}))

app.listen(3000, function(req, res) {
  console.log('打开http://localhost:3000访问页面')
})
